﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Content;

namespace DARE
{
    public class CHeightMapData: CObjectData
    {
        public float terrainBump = 25.0f;
        public float terrainScale = 1.0f;
        public APhysicObject.ECollisionType collisionType;
        public string textureName;

        public void FillDataStructure(CHeightmapModel model)
        {
            terrainBump = model.HeightMapInfo.TerrainBump;
            terrainScale = model.HeightMapInfo.TerrainScale;
            if (model.Entity.Physic != null)
                collisionType = model.Entity.Physic.CollisionType;
            else
                collisionType = APhysicObject.ECollisionType.GROUND;
            textureName = CResourceMgr.GetResourceName(model.HeightMapInfo.Heightmap);
        }
    }
}
